/**
 * @Author xingyu Xue
 * @Date 2023/6/17 16:33
 */
public class hello {


    public static int[] twoSum(int[] nums, int target) {
        int n=nums.length;
        for(int i =0;i<n;i++){
            for(int j=i+1;j<n;j++){
                if(nums[i]+nums[j]==target){
                    return new  int[] {i,j};
                }
            }
        }
        return new int[] {0};
    }
    public static void main(String[] args) {
//        twoSum([2,7,11,15]);
    }
}
